package o;

import android.content.Context;
import android.os.Bundle;
import com.sina.weibo.sdk.auth.AuthInfo;
import com.sina.weibo.sdk.web.BaseWebViewRequestData;

public abstract class foc {
    private BaseWebViewRequestData ˋ;
    private String ˎ;
    protected Context ॱ;

    public interface d {
        void ˎ(String str);

        void ॱ(String str);
    }

    public abstract String ˊ();

    protected abstract void ˊ(Bundle bundle);

    protected abstract void ˋ(Bundle bundle);

    public foc(AuthInfo authInfo, fnt o_fnt, String str, String str2, String str3, Context context) {
        this(authInfo, o_fnt, str, 0, str2, str3, context);
    }

    public foc(AuthInfo authInfo, fnt o_fnt, String str, int i, String str2, String str3, Context context) {
        this.ˋ = new BaseWebViewRequestData(authInfo, o_fnt, str, i, str2, str3);
        this.ॱ = context;
        this.ˎ = String.valueOf(System.currentTimeMillis());
    }

    public void ˊ(Context context) {
        this.ॱ = context;
    }

    public Bundle ॱ(Bundle bundle) {
        if (this.ˋ == null) {
            throw new NullPointerException("构造方法错误，请使用全参数的构造方法构建");
        }
        bundle.putSerializable("base", this.ˋ);
        switch (this.ˋ.ˋ()) {
            case DEFAULT:
                bundle.putInt("type", 0);
                break;
            case SHARE:
                bundle.putInt("type", 1);
                break;
            case AUTH:
                bundle.putInt("type", 2);
                break;
        }
        bundle.putString("_weibo_transaction", this.ˎ);
        ˊ(bundle);
        return bundle;
    }

    public void ˏ(Bundle bundle) {
        this.ˋ = (BaseWebViewRequestData) bundle.getSerializable("base");
        this.ˎ = bundle.getString("_weibo_transaction");
        ˋ(bundle);
    }

    public boolean ॱ() {
        return false;
    }

    public void ˊ(d dVar) {
    }

    public BaseWebViewRequestData ˋ() {
        return this.ˋ;
    }
}
